const VuexCountStorage = localStorage.getItem('vuex-count')
//创建一个state对象给store对象的配置项
export default{
    count:VuexCountStorage?JSON.parse(localStorage.getItem('vuex-count')).count: 0,
    price:VuexCountStorage?JSON.parse(localStorage.getItem('vuex-count')).price: 99,
    movieList:VuexCountStorage?JSON.parse(localStorage.getItem('vuex-count')).movieList: []
}